package com.minesweeper;
import javafx.scene.control.Alert;
import javafx.scene.control.Alert.AlertType;
public class LoseDialog {
    private static LoseDialog instance;
    private LoseDialog() {}
    public static void show() {
        if (instance == null) {
            instance = new LoseDialog();
        }
        Alert alert = new Alert(AlertType.ERROR);
        alert.setTitle("游戏失败");
        alert.setHeaderText("很遗憾，你踩到地雷了！");
        alert.showAndWait();
    }
}